<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="head.html::head">
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:text="${msg}"></div>
<div th:text="${agd}"></div>
<div id="top" th:include="head.html::top"></div>
<div id="left" th:include="left.html::left"></div>
<table>
    <h3><a th:href="@{/goodstypeadd}">添加商品类别</a></h3>
    <tr><th>商品种类名</th></tr>
    <tr th:each="goodstype:${goodstypelist}">
        <td th:text="${goodstype.getTname()}"></td>
        <td>
            <a th:href="@{/delGoodstype/} + ${goodstype.getTid()}">删除</a>
            <a th:href="@{/goodstype/} + ${goodstype.getTid()}">编辑</a>
        </td>
    </tr>
</table>
</body>
</html>